package cn.ljy.authority.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel(value="账户密码修改表单")
@Data
public class UserPasswordParam {
    @ApiModelProperty(value="原密码")
    @NotBlank(message = "不能为空")
    private String password;
    @ApiModelProperty(value="新密码")
    @NotBlank(message = "不能为空")
    @Length(min = 6, max = 20, message = "密码长度必须在 {min} - {max} 之间")
    private String newPassword;
    @ApiModelProperty(value="确认密码")
    @NotBlank(message = "不能为空")
    private String confirmPassword;
}
